<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value='访问日志'}}
{{assign var="app" value='visitlog'}}
{{assign var="act" value='index'}}
{{assign var="table" value='visit_log'}}
{{assign var="td" value='9'}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
	<div id="content">
	
	<div class="search">
	<form name='search' class="router" action="index.php" method="get">
		<input type="hidden" name="app" value="{{$app}}"/>
		  <ul class="bread">
			<li>
				用户名：<input class="input-small" type="text" name="user_name" value="{{$smarty.get.user_name}}" />
			</li>
			<li>
				IP地址：<input class="input-small" type="text" name="ip" value="{{$smarty.get.ip}}" />
			</li>
			<li>
				<button type="submit" class="search btn btn-success"><i class="icon-search"></i>搜索</button>
				<a href="index.php?app={{$app}}" class="a">清除</a>
			</li>
		  <ul>
	</form>
	</div>

	<form name='form' action="index.php?app={{$app}}" method="post">
	<input type="hidden" name="app" value="{{$app}}"/>
	<input type="hidden" name="act" value=""/>
	<input type="hidden" name="table" value="{{$table}}"/>
	<table class="table table-bordered">
		<tr class="thead">
		  <td colspan="{{$td}}">
		  <div class="floatr">
			<a class="btn delete btn-danger" href="javascript:"><i class="icon-trash icon-white"></i>批量删除</a>
		  </div>
		  ◆ {{$title}}管理 －> {{$title}}列表
		  </td>
		</tr>
		{{if !$result.data}}
		<tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr>
		{{else}}
		<tr class="ttitle">
			<th width="30"><label><input class="check_all" type="checkbox"/></label></th>
			<th>ID</th>
			<th>用户名</th>
			<th>标题</th>
			<th>url</th>
			<th>ip</th>
			<th>时间</th>
			<th>请求方式</th>
			<th>url参数</th>
			<!--<th width="200">描述</th>-->
		</tr>
		<tbody>
			{{foreach from=$result.data item=val}}
			<tr target="id" rel="{{$val.id}}">
				<td><label><input name="check_id[]" class="check_id" value="{{$val.id}}" type="checkbox"/> <input name="ids[]" value="{{$val.id}}" type="hidden"/></label></td>
				{{*ID*}}<td>{{$val.id}}</td>
				{{*用户名*}}<td>{{$val.user_name}}</td>
				{{*标题*}}<td>{{$val.title}}</td>
				{{*url*}}<td>{{$val.control}}/{{$val.action}}</td>
				{{*ip*}}<td>{{$val.ip}}</td>
				{{*时间*}}<td>{{$val.time|date_format:"%Y-%m-%d %H:%M:%S"}}</td>
				{{*请求方式*}}<td>{{$val.method}}</td>
				{{*url参数*}}<td><input value="{{$val.query}}" type='text' readonly/></td>
				{{*描述<td>{{$val.description}}</td>*}}
			</tr>
		    {{/foreach}}
			<tr class="noline ttitle">
			  <td colspan="{{$td}}">
				<!-- <a class="check_all btn"><i class="icon-ok"></i>全选/反选</a> -->
			  </td>
			</tr>
			<tr class="thead">
			  <td colspan="{{$td}}">
				{{include file="include/page.html"}}
			  </td>
			</tr>
		</tbody>
		{{/if}}
	</table>
	</form>
</div>
</div>

</body>
</html>